<!--conf
<sample in_favorites="true">
              <product version="1.6" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               <sampledescription><![CDATA[Try to find necessary data in treegrid using built-in filters and searc capabilities]]></sampledescription></sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Search and Filtering in TreeGrid</title>	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
	<style>
	div.gridbox div.ftr td{
		text-align:right;
						
	}
	div.gridbox table.hdr td {
		font-weight:bold;
	}
	</style>
	
</head>

<body>
	
	<h1>Search and Filtering in TreeGrid</h1>
	<p>
   TreeGrid supports filtering. You can set search box, text or select filters for each column.
	</p>
	
	By <select onchange="mygrid.setFiltrationLevel(this.value)"><option value="-1" selected="true">last level<option value="1">second level</select> ( affect filters only )
	<table width="550">
		<tr>
			<td>
				<div id="gridbox" width="100%" height="327px" style="background-color:white;"></div>
			</td>
            
		</tr>
	</table>

<script>

	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setIconsPath("../common/images/");
	mygrid.setHeader("Search, Text Filter, Select Filter");
	mygrid.attachHeader("#text_search,#text_filter,#select_filter")
	mygrid.setInitWidths("300,120,*")
	mygrid.setColAlign("left,right,right")
	mygrid.setColTypes("tree,price,ed");
	mygrid.setColSorting("str,int,int")
	
	mygrid.init();
	mygrid.setSkin("dhx_skyblue")
	mygrid.loadXML("../common/treegrid_sample1.xml");
	
	
	
	
	
</script>


</body>
</html>

